#pragma once

#include "Graphic.h"

// CChunkView view

class CChunkView : public CScrollView
{
	DECLARE_DYNCREATE(CChunkView)

	PGRAPHIC m_pGraphic;

	void PrepareGraphic( int ox, int oy, int cx, int cy );

protected:
	CChunkView();           // protected constructor used by dynamic creation
	virtual ~CChunkView();

public:
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnInitialUpdate();     // first time after construct

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
};


